﻿using MxWeiXinPF.API.Payment.Tenpay;
using MxWeiXinPF.Common;
using MxWeiXinPF.Web.UI;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.weixin.jiaoshuifei
{
    public partial class paymentnoone : WeiXinPage
    {
        public int wid = 0;
        public string tips = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            wid = MyCommFun.RequestWid();
            string thisUrl = MyCommFun.getWebSite() + "/weixin/jiaoshuifei/paymentnoone.aspx?wid=" + wid;
            OAuth2BaseProc(wid, thisUrl);


            if (wid == 0 || openid == "")
            {
                Response.Redirect("/weixin/jiaoshuifei/index.aspx?wid=" + wid);
            }
            MxWeiXinPF.BLL.shuifei_baseinfo _baseInfoBLL = new BLL.shuifei_baseinfo();
            Model.shuifei_baseinfo baseinfoModel = _baseInfoBLL.GetModelByWid(wid);
            if (baseinfoModel != null)
            {

                tips = baseinfoModel.tips;
            }

        }
    }
}